import {observable, action} from "mobx";

class RecordFreeUser {
    @observable name; //姓名private
    @observable graudateYear; //毕业年份
    @observable marjorName; //专业
    @observable classes; //班级
    @observable idNum; //本人身份证号码
    @observable mateName; //同学姓名


    constructor(name, graudateYear, marjorName, classes, idNum, mateName) {
        this.name = name;
        this.graudateYear = graudateYear;
        this.marjorName = marjorName;
        this.classes = classes;
        this.idNum = idNum;
        this.mateName = mateName;
    }

    static fromJS(store, object) {
        return new RecordFreeUser(
            object.name,
            object.graudateYear,
            object.marjorName,
            object.classes,
            object.idNum,
            object.mateName
        );
    }
}

export default RecordFreeUser;